﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;

namespace GYCTOAManagementSystemNewApi.Model.API
{
    #region api状态码
    /// <summary>
    /// 
    /// </summary>
    public enum ApiStatusCodeEnum
    {
        /// <summary>
        /// 请求成功200
        /// </summary>
        [Description("请求成功")]
        Code200 = 200,
        /// <summary>
        /// 400
        /// </summary>
        [Description("客户端请求的语法错误，服务器无法理解")]
        Code400 = 400,
        /// <summary>
        /// 401
        /// </summary>
        [Description("很抱歉，您无权访问该接口，请确保已经登录!")]
        Code401 = 401,
        /// <summary>
        /// 403
        /// </summary>
        [Description("很抱歉，您的访问权限等级不够，联系管理员!")]
        Code403 = 403,
        /// <summary>
        /// 405
        /// </summary>
        [Description("很抱歉,您的请求中的方法被禁止")]
        Code405 = 405,
        /// <summary>
        /// 500
        /// </summary>
        [Description("很抱歉,内部服务器发生错误")]
        Code500 = 500,
        /// <summary>
        /// 4002
        /// </summary>
        [Description("refreshtoken已过期,请重新登录")]
        Code4002 = 4002
    }
    #endregion
}
